#!/usr/bin/python
#import cwiid
from time import sleep
import serial
#import rollo.wiimote
import rollo.pololu
import logging
import logging.config

logging.config.fileConfig("conf/rollo.log.conf")

#w= rollo.wiimote.Wiimote()

p= rollo.pololu.TReX('/dev/ttyUSB0')
c= rollo.pololu.TRexTextController(p)

while ( 1 ):
	i = raw_input("Enter direction: f/b/l/r/x\n")
	c.basic_action(i)
	sleep (0.5)
